from PyQt5 import QtWidgets
from test import Ui_MainWindow
import sys

class myshow(QtWidgets.QMainWindow,Ui_MainWindow): #继承QMainWindow Ui_MainWindow
    def __init__(self):
        super(myshow,self).__init__()
        self.setupUi(self) #加载窗体

if __name__=='__main__':
    app=QtWidgets.QApplication(sys.argv)
    myshow=myshow()
    myshow.show()
    sys.exit(app.exec())
    
